package cn.bugstack.springframework.aop;

/**
 * <p>定义类匹配类，用于切点找到给定的接口和目标类。
 * <p>Filter that restricts matching of a pointcut or introduction to
 * a given set of target classes.
 *
 * @author Yaxi.Zhang
 * @since 2022/12/22 16:49
 */
public interface ClassFilter {

    /**
     * Should the pointcut apply to the given interface or target class?
     *
     * @param clazz the candidate target class
     * @return whether the advice should apply to the given target class
     */
    boolean matches(Class<?> clazz);

}
